package jp.bsws.common;

import java.sql.Connection;
import java.sql.DriverManager;

import com.google.appengine.api.rdbms.AppEngineDriver;

public class DBUtils {

	private static final String DB_URL = "jdbc:google:rdbms://bswsgcs:bswsins/bswsdb";

	public static Connection getConnection() throws Exception {

		Connection c = null;

		DriverManager.registerDriver(new AppEngineDriver());
		c = DriverManager.getConnection(DB_URL);

		c.setAutoCommit(false);
		return c;
	}
}
